package com.sjq.project.dao;

import java.util.List;
import java.util.Map;

import com.sjq.project.entity.Project;
import com.sjq.common.util.PageResults;

public interface ProjectDao {
	/**分页查询***/
	public PageResults<?> selectProjectByPage(int pageNo, int pageSize,Project project);
	/**新增记录***/
	public int addProject(Project project);
	/**删除记录**/
	public int deleteProject(String projectId);
	/***更新记录***/
	public int updateProject(Project project);
	/**按查询条件查询所有**/
	public List<Map<String, String>> findProjectByListAll(Project project);
	//更新项目当前状态
	public int updateProjectStatus(String projectId,String status);
	
	//生成项目编号
	public String buildProjectId();
	
	//校验项目的当前状态
	public  Map<String, String> queryProjectById(String projectId);
	
}
